#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include <QTimer>
#include <mlt++/Mlt.h>
#include "ui_MainWindow.h"
#include <iostream>
#include "SaveWindow.h"

using namespace std;

class MainWindow : public QMainWindow, private Ui::MainWindow{
	Q_OBJECT

	public:
	MainWindow(QMainWindow *parent = 0);
	~MainWindow();
	void initializeMlt ();

	private:
	SaveWindow *saveWindow;
	int fps;
	void connectSlots();
	Mlt::Profile *m_profile;
	Mlt::Producer *m_producer;
	Mlt::Consumer *m_consumer;
	Mlt::Playlist *m_playlist;
	Mlt::Tractor *m_tractor;
	bool isPlaying;
	QTimer *timer;

	public slots:
	void openVideo();
	void play();
	void pause();
	void playOrPause();
	void arreter();
	void seek(int position);
	void updateSlider();
	void save();
};

#endif
